<script type="text/javascript">
	$(document).ready(function () {
		$("#user_ts_hytj").delegate(".agree","click",function(){
			$.post("<?=base_url ()?>index.php/referral/addFriends",{id:$(this).attr('title'),"referralStatus":1},function(data){
				wanwanDialog("<?=base_url ()?>index.php/",data);
				$("#user_ts_hytj").load("<?=base_url()?>index.php/referral/userTsHytj");
			});
			
		});
		$("#user_ts_hytj").delegate(".refuse","click",function(){
			$.post("<?=base_url ()?>index.php/referral/addFriends",{id:$(this).attr('title'),"referralStatus":-1},function(data){
				alert(data);
			});
		});
	});
</script>
<?=$ts_hytj?>
